package com.ruoyi.product.domain.Shopping;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 规格设置对象 specification
 * 
 * @author ruoyi
 * @date 2024-07-29
 */
public class Specification extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 商品图 */
    @Excel(name = "商品图")
    private String image;

    /** 商品售价 */
    @Excel(name = "商品售价")
    private Long market;

    /** 成本价 */
    @Excel(name = "成本价")
    private Long cost;

    /** 原价 */
    @Excel(name = "原价")
    private Long price;

    /** 库存 */
    @Excel(name = "库存")
    private Long inventory;

    /** 雪花id用于和其他表连接||商品编号 */
    @Excel(name = "雪花id用于和其他表连接||商品编号")
    private String snowflakesId;

    /** 重量 */
    @Excel(name = "重量")
    private Long weight;

    /** 体积 */
    @Excel(name = "体积")
    private Long volume;

    /** 商品规格 */
    @Excel(name = "商品规格")
    private Long specProductId;

    /** 商品分类 */
    @Excel(name = "商品分类")
    private String specName;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setImage(String image) 
    {
        this.image = image;
    }

    public String getImage() 
    {
        return image;
    }
    public void setMarket(Long market) 
    {
        this.market = market;
    }

    public Long getMarket() 
    {
        return market;
    }
    public void setCost(Long cost) 
    {
        this.cost = cost;
    }

    public Long getCost() 
    {
        return cost;
    }
    public void setPrice(Long price) 
    {
        this.price = price;
    }

    public Long getPrice() 
    {
        return price;
    }
    public void setInventory(Long inventory) 
    {
        this.inventory = inventory;
    }

    public Long getInventory() 
    {
        return inventory;
    }
    public void setSnowflakesId(String snowflakesId) 
    {
        this.snowflakesId = snowflakesId;
    }

    public String getSnowflakesId() 
    {
        return snowflakesId;
    }
    public void setWeight(Long weight) 
    {
        this.weight = weight;
    }

    public Long getWeight() 
    {
        return weight;
    }
    public void setVolume(Long volume) 
    {
        this.volume = volume;
    }

    public Long getVolume() 
    {
        return volume;
    }
    public void setSpecProductId(Long specProductId) 
    {
        this.specProductId = specProductId;
    }

    public Long getSpecProductId() 
    {
        return specProductId;
    }
    public void setSpecName(String specName) 
    {
        this.specName = specName;
    }

    public String getSpecName() 
    {
        return specName;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("image", getImage())
            .append("market", getMarket())
            .append("cost", getCost())
            .append("price", getPrice())
            .append("inventory", getInventory())
            .append("snowflakesId", getSnowflakesId())
            .append("weight", getWeight())
            .append("volume", getVolume())
            .append("specProductId", getSpecProductId())
            .append("specName", getSpecName())
            .toString();
    }
}
